<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



echo '<div id="head-esq">';
if ($cliente == null) {
    //Formulario de Login
    echo ('<form action="login.php" method="POST">
    E-mail: <input name="login" type="text"/>
    Senha: <input name="senha" type="password"/>
    <input type="submit" value="Logar"/>
    </form>');
}else{
    //Boa vindas de cliente
    echo "Bem Vindo: ";
    echo $cliente->getNome();
    echo " ";
    echo "(<a href='logout.php'>sair</a>)";
}
echo "</div>";
echo "<div id='head-dir'>";
echo "   Meu Carrinho (";
echo $carrinho->countItems();
echo " items)";
echo "</div>";

?>




